﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="model_add.aspx.cs" Inherits="DataBaseManage_ModelAdd" validaterequest="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>模板详细信息</title>
    <style type="text/css">

td { font-size: 9pt}
        #value
        {
            height: 329px;
            width: 523px;
        }
    </style>
    <script language="javascript" type="text/javascript">
    function CheckData()
    {
     var val=document.getElementById("TextBox1").value;
     if(val.replace(/(^\s*)|(\s*$)/g,"").length<=0){
     alert("模板名称不能为空！");
     return false;
     }
     var val2=document.getElementById("TextBox2").value;
     if(val2.replace(/(^\s*)|(\s*$)/g,"").length<=0){
     alert("模板内容不能为空！");
     return false;
     }
    }
    </script>
</head>
<body>
   <form id="Form1" runat="server">                           
     <table width="100%" border="0" cellspacing="0" align="center" cellpadding="0">
          <tr>
            <td height="2" bgcolor="#A49B81"></td>
          </tr>
          <tr>
            <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav"
                                        style="background-repeat: repeat-y; background-position: left; padding-left: 6px;
                                        padding-top: 3px;">
                <asp:Label ID="headers" runat="server" /></td>
          </tr>
          <tr>
            <td height="1" bgcolor="#B0C9E8">
                <br />          
              </td>
          </tr>          
        </table>
        <div style="height:30PX"></div>
            <table width="80%" border="0" align="center" cellspacing="0" cellpadding="0"  >
              <tr bgcolor="#2583BC">
                <th align="left">　　请填写模板信息</th>
                </tr>
                </table>               
              <table width="80%" height="117" border="0" align="center" style="border:solid 1px #99C; ">
                <tr>
                  <td  height="20" colspan="3"></td>
                 
                </tr>
                
               <tr>
                  <td width="20%" height="33" align="right"><font color="#ff0000">*</font>名称：</td>
                  <td width="3%">&nbsp;</td>
                  <td width="77%">
                      <asp:TextBox ID="TextBox1" runat="server" Width="700px" MaxLength="122" ></asp:TextBox>
&nbsp;</td>
                </tr>   
                                                        
                 <tr>
                   <td align="right">类型：</td>
                   <td>&nbsp;</td>
                   <td>
                       <asp:DropDownList ID="DropDownList1" runat="server">
                           <asp:ListItem Value="1">首页</asp:ListItem>
                           
                       </asp:DropDownList>
                     </td>
                 </tr>                                
                           
                 <tr>
                   <td align="right"><font color="#ff0000">*</font>内容：</td>
                   <td>&nbsp;</td>
                   <td>
                       <asp:TextBox ID="TextBox2" runat="server" Height="300px" Width="750px" 
                           TextMode="MultiLine"></asp:TextBox>
                        </td>
                 </tr>           
                                                                                                  
                 <tr>
                   <td align="right">是否有效：</td>
                   <td>&nbsp;</td>
                   <td>
                       <asp:CheckBox ID="CheckBox1" runat="server" />
                        </td>
                 </tr>           
                                                                                                  
                <tr>
                  <td height="33" align="right"></td>
                  <td>&nbsp;</td>
                  <td height="35" align="left">                     
                     <asp:Button ID="Button1" runat="server" OnClientClick="return CheckData();"
                         Text="提交" onclick="Button1_Click" />
                      <asp:Button ID="Button2" runat="server" onclick="Button2_Click1" Text="重填" />
&nbsp;<asp:Button ID="Button3" runat="server" onclick="Button3_Click1" Text="返回" Width="40px" />
&nbsp;</tr>
                            
              </table>    
   
    </form>
</body>
</html>
